package com.atbun.eduservice.service;

import com.atbun.eduservice.entity.EduVideo;
import com.atbun.eduservice.entity.vo.VideoVo;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 课程视频 服务类
 * </p>
 *
 * @author testjava
 * @since 2020-05-06
 */
public interface EduVideoService extends IService<EduVideo> {
//    根据章节id查询小节
    boolean getCountByChapterId(String chapterId);
//      添加课时内容
    void saveVideoInfo(VideoVo videoVo);

    VideoVo getVideoInfoFormById(String id);

    void updateVideoInfoById(VideoVo videoVo);

    boolean removeVideoById(String id);
//根据课程id删除视频
    boolean deleteVideoByCourseId(String courseId);
//    根据课程id删除多个视频
    public boolean removeByCourseId(String courseId);
}
